package com.yunyi.integration.action;

import com.yunyi.integration.service.PolymorphismInterface;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 多态测试前台类
 *
 * @author yunyi
 */
@RestController
@RequestMapping("/polymorphism")
public class PolymorphismAction {
    @Autowired
    private PolymorphismInterface polymorphismInterface;

    @GetMapping("test")
    public void test(String name) {
        polymorphismInterface.testSomething(name);
    }


}
